// -*- C++ -*-
//
//  This file is part of Siena, a wide-area event notification system.
//  See http://www.inf.usi.ch/carzaniga/siena/
//
//  Authors: Antonio Carzaniga
//  See the file AUTHORS for full details. 
//
//  Copyright (C) 2003 University of Colorado
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
//  USA, or send email to one of the authors.
//
//
// $Id: mmhwrapper.h,v 1.4 2010-03-11 15:16:40 carzanig Exp $
//
#ifndef MMHWRAPPER_H
#define MMHWRAPPER_H

namespace siena {

class MMHWrapper: public MatchHandler {
    MatchMessageHandler & p;
    const message & m;
public:
    MMHWrapper(MatchMessageHandler & x, const message & y) throw()
	: p(x), m(y) {};
    virtual bool output(if_t i) throw() {
	return p.output(i, m);
    }
};

} // namespace siena

#endif
